home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
crypt
/
tarchiv
/
archiv.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-27
|
764b
|
39 lines
Program Archiv;
Uses Dos, Arc;
Var
A : PArchiver;
LineStr : String[80];
Begin
LineStr[0]:=#80;
FillChar(LineStr[1],80,196);
Writeln (MagicCode,' - File archiver program -');
Write (LineStr);
If ParamCount<>3 Then Begin
Writeln ('Usage: Archiv a|x|v <archive_name> <wildcard>|@<filelist>');
Exit;
End;
If ParamStr(1)='a' Then Begin
New (A,Init(ParamStr(2)+'.A',fWrite));
A^.AddFiles(ParamStr(3));
Dispose (A,Done);
Exit;
End;
If ParamStr(1)='x' Then Begin
New (A,Init(ParamStr(2)+'.A',fRead));
A^.ExtractFiles(ParamStr(3));
Dispose (A,Done);
Exit;
End;
If ParamStr(1)='v' Then Begin
New (A,Init(ParamStr(2)+'.A',fRead));
A^.DisplayFlag := True;
A^.ExtractFiles(ParamStr(3));
Dispose (A,Done);
Exit;
End;
End.